//
// Source code recreated from ConfigVo .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//

package com.ht.modules.system.online.config.util;

import java.util.Comparator;
import com.ht.modules.system.online.cgform.entity.OnlCgformField;

public class FieldNumComparator implements Comparator<OnlCgformField> {
    public FieldNumComparator() {
    }

    public int compare(OnlCgformField o1, OnlCgformField o2) {
        if (o1 != null && o1.getOrderNum() != null && o2 != null && o2.getOrderNum() != null) {
            Integer thisVal = o1.getOrderNum();
            Integer anotherVal = o2.getOrderNum();
            return thisVal < anotherVal ? -1 : (thisVal == anotherVal ? 0 : 1);
        } else {
            return -1;
        }
    }
}
